package com.site.service.impl;

import com.night.common.entity.logistical.RepaisrRecord;
import com.site.mapper.RepaisrRecordMapper;
import com.site.service.RepaisrRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName: RepaisrRecordServiceImpl
 * @author: LJC
 * @date: 2022/10/21-9:45
 */
@Service
public class RepaisrRecordServiceImpl implements RepaisrRecordService {
    @Autowired
    private RepaisrRecordMapper repaisrRecordMapper;

    //查询所有报修记录
    @Override
    public List<RepaisrRecord> getAllRepaisrRecord() {
        return repaisrRecordMapper.getAllRepaisrRecord();
    }

    //新增报修记录
    @Override
    public void addRepaisrRecord(RepaisrRecord repaisrRecord) {

    }

    //根据id修改报修记录
    @Override
    public void updateRepaisrRecord(RepaisrRecord repaisrRecord) {
        repaisrRecordMapper.updateRepaisrRecord(repaisrRecord);
    }

    //根据id查找报修记录
    @Override
    public RepaisrRecord getRepaisrRecordById(RepaisrRecord repaisrRecord) {
        return repaisrRecordMapper.getRepaisrRecordById(repaisrRecord);
    }
}
